package com.aaa.controller;

import com.aaa.entity.Dept;
import com.aaa.vo.Tu;
import com.aaa.service.DeptService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/dept")
public class DeptController {
    @Resource
    private DeptService deptService;

    @RequestMapping("/selectAllDept")
    public List<Dept> selectAllDept() {
        return deptService.selectAllDept();
    }

    @RequestMapping("/tu")
    public List<Tu> gettu(){
        return deptService.gettu();
    }
}
